package PaiXu.a05Recursiondemo5;

public class Test1 {
    public static void main(String[] args) {
        int sum = getSum(100);
        System.out.println(sum);
    }
    public static int getSum(int number){
        if(number==1){
            return 1;
        }

        return number+getSum(number-1);
    }
}
